let bookArray =[
    {code:1,name:"三国演义",author:"罗贯中",price:20,date:"1648-07-06",imgPath:"images/3_1.jpg"},
    {code:3,name:"西游记",author:"吴承恩",price:15,date:"1573-07-06",imgPath:"images/3_2.jpg"},
    {code:2,name:"水浒传",author:"施耐庵",price:25,date:"1678-07-06",imgPath:"images/3_3.jpg"},
    {code:4,name:"红楼梦",author:"曹雪芹",price:36,date:"1874-07-06",imgPath:"images/3_4.jpg"},
    {code:7,name:"天龙八部",author:"金庸",price:17,date:"2006-07-06",imgPath:"images/4_1.jpg"},
    {code:5,name:"神雕侠侣",author:"金庸",price:21,date:"2005-07-06",imgPath:"images/4_2.jpg"},
    {code:9,name:"C语言",author:"谭浩强",price:33,date:"2002-07-06",imgPath:"images/4_3.jpg"}
];


let shoppingCart=[];















function $(id) {
    return document.getElementById(id);
}